﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true"
    CodeBehind="RoomSet.aspx.cs" Inherits="Besture.UI.RoomSet" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="editPage">
        <div class="tab-wrap">
            <ul class="tab">
                <li class="on" onclick="setTab(this,0)"><a href="javascript:void(0)" title="基本信息">房型信息</a></li>
                <%--<li onclick="setTab(this,1)"><a href="javascript:void(0)" title="房型图片">房型图片</a></li>--%>
            </ul>
        </div>
        <div class="tab-ct-wrap">
            <div class="tab1">
                <table cellspacing="0" cellpadding="0" class="table-module01">
                    <tr>
                        <th>所属酒店：
                        </th>
                        <td>
                            <img src='/Admin/Themes/Images/indispensable.gif' align='absMiddle' />
                            <asp:DropDownList runat="server" ID="ddlHotelsID" class="required"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <th>房型名称：
                        </th>
                        <td>
                            <cms:TextBox runat="server" ID="txtRoomName" Required="True" MaxLength="200"
                                WidthExt="Width_400"></cms:TextBox>
                        </td>
                    </tr>
                     <tr>
                        <th>早餐情况：
                        </th>
                        <td> 
                           <img src="/Admin/Themes/Images/indispensable.gif" align="absMiddle">
                            <asp:DropDownList ID="ddlBreakfast" runat="server"></asp:DropDownList>
                        </td>
                    </tr> 
                    <tr>
                        <th>房型图片：
                        </th>
                        <td>
                            <cms:UploadSinglePhoto runat="server" ID="imgRoomImage" Required="True" Tips="请上传图片" />
                        </td>
                    </tr>
                     <tr>
                        <th>房型环境图片：
                        </th>
                        <td>
                            <cms:UploadMultiPhoto runat="server" ID="UploadMultiPhoto" NeedThumbnail="True" ThumbnailFolderPath="/Upload/Image/Thumbnails/" ThumbnailWidth="129" ThumbnailHeight="129" Required="True" Tips="※请上传图片" />
                        </td>
                    </tr>
                    <tr>
                        <th>床型：
                        </th>
                        <td>
                            <img src='/Admin/Themes/Images/indispensable.gif' align='absMiddle' />
                            <asp:DropDownList runat="server" ID="ddlBedType" class="required"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <th>床型备注：
                        </th>
                        <td>
                            <cms:TextBox runat="server" ID="txtBedTypeRemark" Required="False" MaxLength="500"
                                WidthExt="Width_400" TextMode="MultiLine" Height="100"></cms:TextBox>
                        </td>
                    </tr>
                    <%--<tr>
						<th>
							早餐信息：
						</th>
						<td>
							<img src='/Admin/Themes/Images/indispensable.gif' align='absMiddle' />
							<asp:DropDownList runat="server" ID="ddlBreakfast" class="required"></asp:DropDownList>
						</td>
					</tr>--%>
                    <tr>
                        <th>宽带信息：
                        </th>
                        <td>
                            <img src='/Admin/Themes/Images/indispensable.gif' align='absMiddle' />
                            <asp:DropDownList runat="server" ID="ddlBroadband" class="required"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <th>房型面积：
                        </th>
                        <td>
                            <cms:TextBox runat="server" ID="txtRoomArea" Required="True" MaxLength="5"
                                WidthExt="Width_50" ValidateExt="Digits"></cms:TextBox>平方米
                        </td>
                    </tr>
                    <tr>
                        <th>所在楼层：
                        </th>
                        <td>
                            <cms:TextBox runat="server" ID="txtFloor" Required="True" MaxLength="5"
                                WidthExt="Width_50"></cms:TextBox>楼
                        </td>
                    </tr>
                    <tr style="display:none">
                        <th>房型底价：
                        </th>
                        <td>
                            <cms:TextBox runat="server" ID="txtLowPrice"  
                                WidthExt="Width_50" ValidateExt="Digits"></cms:TextBox>RMB
                        </td>
                    </tr>
                    <tr>
                        <th>入住人数：
                        </th>
                        <td>
                            <cms:TextBox runat="server" ID="txtPeopleNumber" Required="True" MaxLength="2"
                                WidthExt="Width_50" ValidateExt="Digits"></cms:TextBox>人
                        </td>
                    </tr>
                    <tr>
                        <th>无烟信息：
                        </th>
                        <td>
                            <img src='/Admin/Themes/Images/indispensable.gif' align='absMiddle' />
                            <asp:DropDownList runat="server" ID="ddlSmoke" class="required"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <th>房型设施：
                        </th>
                        <td id="cbRoomFacilities" runat="server"></td>
                    </tr>
                    <tr>
                        <th>房型备注：
                        </th>
                        <td>
                            <cms:TextBox runat="server" ID="txtRoomRemark" Required="False" MaxLength="2000"
                                WidthExt="Width_400" TextMode="MultiLine" Height="100"></cms:TextBox>
                        </td>
                    </tr>
                    
                <tr>
                    <th>
                        排序编号：
                    </th>
                    <td> 
                        <asp:TextBox style="text-align:right;" ID="txtSortID" runat="server" class="input-text required digits" 
                            MaxLength="8" Width="50px"></asp:TextBox>
                    </td>
                    </tr>
                </table>
            </div> 
        </div>
        <div class="buttonDiv">
            <table width="98%" cellspacing="0" cellpadding="0" class="table-module01">
                <th width="130" align="right">&nbsp;
                </th>
                <td>
                    <span class="btn-sure-wrap">
                        <asp:Button runat="server" ID="btnSubmit" CssClass="btn-sure btn-edit" Text="保存" OnClick="BtnSubmitClick" /></span>
                    <span class="btn-cancel-wrap">
                        <input type="button" class="btn-cancel" value="取消" onclick="location.href='<%=ListUrl() %>    '" /></span>
                </td>
            </table>
        </div>
    </div>
    <input type="hidden" id="hidRoomFacilities" runat="server" />
    <script>
        $(function() {             

            $("#<%=btnSubmit.ClientID%>").click(function() {        
                if ($("form").valid()) {
                  
                    var vRoom = "";
                    $("input[name='cbRoom']:checked").each(function() {

                        vRoom += $(this).val()+",";
                    });
                    if (vRoom.length>1 ) {
                        $("#<%=hidRoomFacilities.ClientID %>").val(vRoom);   
                        return true;
                    }else{
                        alert("请选择房型设施");
                    }  }
                return false;
            });
        });
    </script>
</asp:Content>
